package com.example.api.service;


import com.example.api.pojo.Book;
import com.example.api.query.BookQuery;
import com.example.api.utils.PageResult;
import com.example.api.vo.BookListVO;
import com.example.api.vo.BookVO;

import java.util.Map;

public interface BookService {


    PageResult<BookListVO> find(BookQuery bookQuery);

    BookVO findByNum(String num);

    void receive(String num);

    void reject(String num, String rejectionReason);

    void delivery(String num);

    void complete(String num);

    void cancel(String num, String cancelReason);


    Map<String, Object> add(long addressId, String remark);

    Book findOrderByNum(String num);

    void updatePaySuccess(String num, String payWay);

    PageResult<BookVO> findApp(BookQuery bookQuery);
}
